#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2020-10-16 2:43 下午
# @Author  : yangdy
# @File    : 2020-10-16.977.有序数组的平方
# @Software: PyCharmCE
from tools.my_methods import *


class Solution:
    def sortedSquares(self, A: List[int]) -> List[int]:
        ans = [x*x for x in A]
        ans.sort()
        return ans

